﻿@page "/"

<p>@json</p>

<button @onclick="ReadJsonAsync">Read</button>

@code {

    private string json = string.Empty;

    private async Task ReadJsonAsync() {
        var httpClient = new HttpClient();
        var response = 
            await httpClient.GetAsync(
                "http://containerizeddemo/WeatherForecast/");
        json = await response.Content.ReadAsStringAsync();
        StateHasChanged();
    }

}